﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DatabaseSimulatorGUI
{
    public partial class ResultsPopup : Form
    {
        //public ResultsPopup(int numberOfThreads, LogResults logResults)
        //{
        //    InitializeComponent();
        //    ThreadsVal.Text = numberOfThreads.ToString();
        //    ThroughputVal.Text = logResults.Throughput.ToString("0.000");

        //    TotalTimeVal.Text = new TimeSpan(0, 0, 0, 0, (int)logResults.TotalTime).ToString(@"hh\:mm\:ss\.fff");
        //    CpuTimeVal.Text = new TimeSpan(0, 0, 0, 0, (int)logResults.CpuTime).ToString(@"hh\:mm\:ss\.fff");
        //    UsefulCpuTimeVal.Text = new TimeSpan(0, 0, 0, 0, (int)logResults.UsefulCpuTime).ToString(@"hh\:mm\:ss\.fff");
        //    IoTimeVal.Text = new TimeSpan(0, 0, 0, 0, (int)logResults.IoTime).ToString(@"hh\:mm\:ss\.fff");
        //    UsefulIoTimeVal.Text = new TimeSpan(0, 0, 0, 0, (int)logResults.UsefulIoTime).ToString(@"hh\:mm\:ss\.fff");

        //    TotalTransactionsVal.Text = (logResults.Completed + logResults.Aborted).ToString();
        //    CompletedTransactionsVal.Text = logResults.Completed.ToString();
        //    AbortedTransactionsVal.Text = logResults.Aborted.ToString();
        //    TotalBlocksVal.Text = logResults.TotalLocks.ToString();
        //}
    }
}
